<?php
include_once $_SERVER['DOCUMENT_ROOT']."/math-videos/configure.inc.php";
$valid_controller=true;
$username = $_SERVER['PHP_AUTH_USER'];
$password = $_SERVER['PHP_AUTH_PW'];
$action=$_SERVER['REQUEST_METHOD'];
//echo "action=$action<br>";
if(isset($_REQUEST['assetID']) && $_REQUEST['assetID']!="")
{
	$assetID= $_REQUEST['assetID'];
  
  if(strtolower($action)=="post")
  {
		//echo "@@@@@@@@@@@@@@@<vR>";
    include "../modules/asset_update.php";
  }
  else if(strtolower($action)=="delete")
  {
	//	echo "##############<vR>";
    include "../modules/asset_delete.php";
  }
  else
  {
	//  echo "!!!!!!!!!!!!!!!!!!<vR>";
    include '../modules/asset_get.php';
  }
}
else
{	
  if(strtolower($action)=='post')
  {
		//echo "!@@@@@@@@@@@@@@@@@@@@<vR>";
  	include "../modules/asset_insert.php";
  }
	else
  {
//	echo "@@@@@@@@@@&&&&&&&&&!!!!!!!!!!!!!!!!!!<vR>";
    include '../modules/asset_get.php';
  }
}
?>